<template>
	<view>
		<u-cell-group v-if="list.length !=0">
			<u-cell @click="detail(item)" v-for="(item,index) in list"  size="large"  :name="item.deliveryAddressId" :key="index"
				class="ms10 mt10" isLink :border="false">
				<text slot="title" class="u-slot-value">
					{{item.uname}}
				</text>
				<text slot="label" class="u-slot-value">
					{{item.ucompname}}
				</text>
				<text slot="value" class="u-slot-value">
					<!-- {{item.udepartmentname}} -->
				</text>
			</u-cell>
		</u-cell-group>
		<u-empty v-else mode="data">
		</u-empty>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		methods: {
			async getList() {
				let re = await this.$API.prescriptionApi.getList(1, 999)
				this.list = re.records
			},
			detail(item) {
				uni.navigateTo({
					url: `/pages_my/preView/preView?data=${encodeURIComponent(JSON.stringify(item))}`
				})
			}
		},
		onShow() {
			this.getList()
		},
	}
</script>

<style lang="scss">
 ::v-deep .u-cell__title-text--large{
	 font-size: 62rpx !important;
 }
 .u-slot-value{
	font-size: 40rpx !important;
 }
</style>